package com.woniuxy.ticketorder.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("ticket_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String orderno;

    private Date ordertime;

    private Integer userId;

    private BigDecimal money;

    private Date paytime;

    private String cinema;

    private String hall;

    private String seat;

    private String status;

    @NotNull(message = "排位-座位表id不能为空")
    @Min(value = 1,message = "排位-座位表id最小为1")
    private Integer scheduleSeatId;

}
